import type { CommonNodeType, VarType, Variable } from '@/components/workflow/types'

export type OutputVar = Record<string, {
  type: VarType
  children: null // support nest in the future,
}>

export type SQLOperatorNodeType = CommonNodeType & {
  variables: Variable[];
  datasource?: string[];
  is_query: boolean;
  script: string;
  outputs: OutputVar;
}
